package com.ocom.common.request.wx;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class UserInfoPageUpdateUserRequest extends CommonRequest{

    @Min(1L)
    @NotNull(message = "userId 不能为空")
    Long userId;

    @Min(0L)
    @NotNull(message = "deptId 不能为空")
    Long deptId;

    @NotBlank(message = "telephone 不能为空")
    String telephone;
    @NotBlank(message = "identity 不能为空")
    String identity;

    @NotBlank(message = "userName 不能为空")
    String userName;

    @NotBlank(message = "pCode 不能为空")
    String pCode;

    @JsonProperty("pPhotoUrl")
    String pPhotoUrl;
}
